import { ref, computed, reactive } from "vue";
import { defineStore } from "pinia";

export const useCounterStore = defineStore(
  "counter",
  () => {
    //存储用户信息
    const piniaDto = reactive({
      accountName: "", //登录账号
      realName: "", //真实姓名
      roleName: "", //角色姓名
      tokenstr: "", //jwt
      IsLoign: false, //是否登录
    });
    const Logininfo = reactive({
      uid: "",
      pwd: "",
    });
    return { piniaDto, Logininfo }; //用户信息
  },
  { persist: true } //持久化
);
